package myapps.ttclient.protocol.message;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

import myapps.ttclient.baseclass_and_interface.TTClientMessage;

public class ScreenSizeResponseMessage extends TTClientMessage {
	public int width;
	public int height;
	
	public ScreenSizeResponseMessage(int width, int height) {
		this.width = width;
		this.height = height;
	}
	
	public static TTClientMessage parse(DataInputStream dis) throws IOException {	
		int width = dis.readInt();
		int height = dis.readInt(); 	
		return new ScreenSizeResponseMessage(width, height);
	}
	
	@Override
	public void toDataOutputStream(DataOutputStream dos) throws IOException {
		throw new IOException("NotImplementedException");
	}
}
